package com.cdplife.ci.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 保单保障计划表
 * </p>
 *
 * @author jers
 * @since 2018-11-07
 */
@TableName("policy_plan")
public class PolicyPlan extends Model<PolicyPlan> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("created_by")
    private String createdBy;
    @TableField("created_date")
    private Date createdDate;
    @TableField("last_modified_by")
    private String lastModifiedBy;
    @TableField("last_modified_date")
    private Date lastModifiedDate;
    /**
     * 保单ID
     */
    @TableField("policy_id")
    private Integer policyId;
    /**
     * 保障计划代码
     */
    @TableField("policy_plan_code")
    private String policyPlanCode;
    /**
     * 保障计划名称
     */
    @TableField("policy_plan_name")
    private String policyPlanName;
    /**
     * 备注信息
     */
    private String comment;
    /**
     * 是否删除 0：未删除（正常） 1：已删除
     */
    @TableField("is_del")
    private Integer isDel;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getLastModifiedBy() {
        return lastModifiedBy;
    }

    public void setLastModifiedBy(String lastModifiedBy) {
        this.lastModifiedBy = lastModifiedBy;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public Integer getPolicyId() {
        return policyId;
    }

    public void setPolicyId(Integer policyId) {
        this.policyId = policyId;
    }

    public String getPolicyPlanCode() {
        return policyPlanCode;
    }

    public void setPolicyPlanCode(String policyPlanCode) {
        this.policyPlanCode = policyPlanCode;
    }

    public String getPolicyPlanName() {
        return policyPlanName;
    }

    public void setPolicyPlanName(String policyPlanName) {
        this.policyPlanName = policyPlanName;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PolicyPlan{" +
        ", id=" + id +
        ", createdBy=" + createdBy +
        ", createdDate=" + createdDate +
        ", lastModifiedBy=" + lastModifiedBy +
        ", lastModifiedDate=" + lastModifiedDate +
        ", policyId=" + policyId +
        ", policyPlanCode=" + policyPlanCode +
        ", policyPlanName=" + policyPlanName +
        ", comment=" + comment +
        ", isDel=" + isDel +
        "}";
    }
}
